package com.zd.zjfx.util;

import javax.net.ssl.X509TrustManager;

import com.fasterxml.jackson.databind.deser.Deserializers.Base;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

public class TrustAllManager implements X509TrustManager {
	
	
    public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
        // 不验证客户端证书
    	
    }

    
    public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
        // 不验证服务器证书
    }

    public X509Certificate[] getAcceptedIssuers() {
        return new X509Certificate[0];
    }
    
}